package com.spring.autowiredAnnotation;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

public class Boss {

	@Autowired
	private Car car;
	
	@Autowired
	private Office office;
	
	@Override
	public String toString(){
		return "Car: " + car + ", Office: " + office;
	}
}
